﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QLKS
{
    public partial class frGDmain : Form
    {
        public frGDmain()
        {
            InitializeComponent();
        }

        private DTO.CTAIKHOAN _taiKhoan;

        internal DTO.CTAIKHOAN TaiKhoan
        {
            get { return _taiKhoan; }
            set { _taiKhoan = value; }
        }

        private DTO.CNHANVIEN _userOnline;

        internal DTO.CNHANVIEN UserOnline
        {
            get { return _userOnline; }
            set { _userOnline = value; }
        }

        private void frGDmain_Load(object sender, EventArgs e)
        {
            contextMenuBar1.Visible = true;
            lblHoTen.Text = UserOnline.HoTen;
        }

        private void btnthemql_Click(object sender, EventArgs e)
        {
            frthemql themql = new frthemql();
            themql.ShowDialog();
            //this.Close();
        }

        private void btnxoasuaql_Click(object sender, EventArgs e)
        {
            frxoasuaql xosuql = new frxoasuaql();
            xosuql.ShowDialog();
        }

        private void btnxembc_Click(object sender, EventArgs e)
        {
            frxembaocao xembc = new frxembaocao();
            xembc.ShowDialog();
        }

        private void btnxemttnv_Click(object sender, EventArgs e)
        {
            frxemttnv xemttnv = new frxemttnv();
            xemttnv.ShowDialog();
        }

        private void btnhd_Click(object sender, EventArgs e)
        {
            Huongdanchung hd = new Huongdanchung();
            hd.ShowDialog();
        }

        private void buttonItem4_Click(object sender, EventArgs e)
        {
            QltaoTK taotk = new QltaoTK();
            taotk.ShowDialog();
        }

        private void buttonItem5_Click(object sender, EventArgs e)
        {
            frDoiMatKhau doimk = new frDoiMatKhau();
            doimk.TK = TaiKhoan;
            doimk.ShowDialog();
        }

        private void buttonItem6_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void buttonItem8_Click(object sender, EventArgs e)
        {
            frloaiphong frlp = new frloaiphong();
            frlp.ShowDialog();
        }

        private void buttonItem9_Click(object sender, EventArgs e)
        {
            frphong frp = new frphong();
            frp.ShowDialog();
        }
    }
}
